package com.sujinyang.stateless_service.shiro;

import org.apache.shiro.mgt.SessionStorageEvaluator;
import org.apache.shiro.subject.Subject;

public class StatelessSessionStorageEvaluator implements SessionStorageEvaluator {

    //禁止subject持久化到会话 ps:也可以根据具体的请求来判断是否要禁止，在这里统一全部禁止
    @Override
    public boolean isSessionStorageEnabled(Subject subject) {
        return false;
    }
}
